package com.lyc.wanandroid_kotlin.ui.activity.login.mvp.model

import com.lyc.wanandroid_kotlin.base.BaseModel
import com.lyc.wanandroid_kotlin.bean.HttpResult
import com.lyc.wanandroid_kotlin.bean.LoginData
import com.lyc.wanandroid_kotlin.http.RetrofitHelper
import com.lyc.wanandroid_kotlin.ui.activity.login.mvp.contract.RegisterContract
import io.reactivex.Observable

/**
 * ClassName:com.lyc.wanandroid_kotlin.ui.activity.login.mvp.model
 * Description:
 */
class RegisterModel : BaseModel(), RegisterContract.Model {
    override fun registerWanAndroid(
        username: String,
        password: String,
        repassword: String
    ): Observable<HttpResult<LoginData>> {
        return RetrofitHelper.service.registerWanAndroid(username, password, repassword)
    }
}